package com.example.demo.RestFo;

import com.example.demo.entity.Mydog;
import lombok.Data;

@Data
public class RestBean<T> {
    /*返回状态码 错误码0 成功200*/
    private int status;
    /*返回状态信息 有success和error两种*/
    private String msg;
    /*返回的前端请求的数据*/
    private T data;
    /*返回的重定向url地址*/
    private String redirect;

    public RestBean(int status, String msg, T data, String redirect) {
        this.status = status;
        this.msg = msg;
        this.data = data;
        this.redirect = redirect;
    }
}
